package com.monitor.util.command;

import java.util.List;

public class WinCommand implements ISysCommand {

	private String commandStr;//命令字符串
	private List<String> lineStrList ;
	
	public WinCommand(){
	}
	
	public WinCommand(String commandStr){
		this.commandStr = commandStr;
	}
	
	@Override
	public void excute() throws Exception {
		Runtime runComm =Runtime.getRuntime();  
	    runComm.exec(this.commandStr); 
	}

	
	public void setCommandStr(String commandStr) {
		this.commandStr = commandStr;
	}
	
	public List<String> getLineStrList() throws Exception{
		return lineStrList;
	}
}
